$(function () {
    var time = new Date();
    var y = time.getFullYear();
    var m = time.getMonth()+1;
    var d = time.getDate();
    if(m<10){m = "0"+m}
    if(d<10){d = "0"+d}
    $("#revisitTime").val(y + "-" + m + "-" + d)
});

function addsf() {
    var index = layer.open({
        type: 2,
        title: '&nbsp',
        area: ['40%', '40%'],
        fix: true,
        maxmin: true,
        content: Feng.ctxPath + '/doctorLooked/to_addsf/'
    });
    this.layerIndex = index;
}

function addjg() {
    var index = layer.open({
        type: 2,
        title: '&nbsp',
        area: ['40%', '40%'],
        fix: true,
        maxmin: true,
        content: Feng.ctxPath + '/doctorLooked/to_addjg/'
    });
    this.layerIndex = index;
}

subsequent = function (id) {
    var index = layer.open({
        type: 2,
        title: '复诊预约',
        area: ['70%', '95%'], //宽高
        fix: true, //不固定
        maxmin: true,
        content: Feng.ctxPath + '/doctorLooked/subsequent_info/' + id + '/2',
    });
    this.layerIndex = index;
};